Ryan Curran's 81st-minute goal ensured that Derry City got their Premier Division campaign off to a winning start away to Galway United on Friday.
Galway debutant Sam Oji gave his side the lead on 20 minutes with a left-foot shot from a Ryan Connolly corner.
Patrick McEleney passed up a good chance before the break but Sean Houston slotted home a composed finish at the back post in the 59th minute.
Curran beat Conor Gleeson from close range to seal three points for Derry.
Both sides were introduced to Irish president Michael D Higgins before the game and it was an under-strength Derry who had an early opportunity to score, but Curran failed to connect with Barry McNamee's cross.
Gary Shanahan's header from a Jake Keegan cross was just off-target, but a minute later Oji took advantage of poor marking by the Candystripes to score his side's first goal on their return to the top flight.
Ger Doherty saved well from Keegan, while Shane McEleney almost scored an own goal when he lifted the ball over Doherty, but the ball went wide of the post.
Gleeson denied Patrick McEleney, then Houston levelled just before the hour mark when the ball broke to him after he was left unmarked.
Patrick McEleney and Houston both played their part in the winner, the ball spinning into the net over Gleeson after Curran had thrown himself at the ball.
Peter Hutton's side face Dundalk in their first home league match of the season next Friday.