Porto come back from a goal down to beat Pacos de Ferreira 2-1 at the Estadio do Dragao.
The away side went ahead after Porto failed to clear a corner, and Bruno Moreira was left alone in the box to put Pacos Ferreira in front.
Porto levelled midway through the half after an excellent run and pass from Yacine Brahimi played in Jesus Corona, who calmly slotted the ball home from inside the box.
The home side went ahead in the second half after they were awarded a penalty after a foul from Ricardo on Hector Herrera, and Miguel Layun put away the spot kick beyond the reach of Marafona.
Vincent Aboubakar went close to extending Porto's lead late on but he was denied yet again by Marafona in the Pacos goal.
The victory moves Porto to within a point of Primeira Liga leaders Sporting Lisbon while Pacos remain just outside the European places in seventh,