Both winners were not ranked as world number one or the top seeds but took the victories ©PSA

Both Ali Farag and Sarah-Jane Perry overcame their top-seeded opponents in the singles finals at the 2018 Professional Squash Association Oracle NetSuite Open in San Francisco.

It was an all-Egypt final in the men's singles as world number two and second seed Farag took on his compatriot and world number one Mohamed Elshorbagy.

Before the final, Elshorbagy had won double the number of head-to-heads over Farag, 8-4.

However, Farag prevailed on the American city's waterfront.

The pair battled it out for more than an hour, producing long rallies to the delight of the crowd.

Farag won the first game, 11-9, and the second game 13-11.

Elshorbagy responded in the third game in dramatic fashion to take it 11-4.

Farag then settled in the fourth and final game, taking it 11-9 and the victory.

This title is Farag's first since the Swedish Open in February.

"I'm feeling great right now, I'm very, very happy to have won this title," said Farag.

"When I first saw the entry list I thought I would withdraw from playing because the draw was so strong.

"But my mentor Karim Darwish told me that I should play the event and show people that they should be scared when seeing my name in the draw - that is the kind of mentality that I need to have if I hope to be world number one some day. 

"Tonight against Mohamed I had to be on my mettle throughout.

"He's a great champion and such a determined fighter - which he showed even when I was ahead in the fourth game, so I'm very glad I managed to get this last few points."

Defending champion Perry of England is ranked as number eight in the world but managed to overcome the top seed and world number two, Raneem El Welily of Egypt, in the final to retain her title.

Before the final, Perry had only ever beaten her Egyptian rival once in nine career meetings.

Despite El Welily's 6-1 lead in the early stages of the first game, Perry responded to take it 11-9.

The English player then doubled her advantage, taking the second game 11-7 before El Welily responded with two game victories of her own 11-9, 11-7 to take it to a deciding game.

In the fifth and deciding game, Perry took time to convert her match point opportunities but finally did to successfully defend her 2017 title, 11-7.

"I'm speechless," said Perry afterwards.

"She was making me work so hard and any time there was even a slight chance she was punishing me.

"I had to play as clever as I have ever done before and I was absolutely knackered in that fifth game but I just forced myself to keep pushing.

"I knew I was playing well and that I didn't have to chance much tactically, I just had to execute.

"But even at 10-4 up she was coming back and she hit some fantastic shots to get it back to 10-7 so there was a lot of relief at the end alongside the elation."