"There's emotion, there's pride, there's going to be a final step, we've been together with the players for a month, it's never easy, there's happiness so far," said coach Didier Deschamps.
France found themselves in an absorbing battle as Morocco showed them no deference and made many chances of their own, coming close to an equaliser.
The world champions’ defence had to scramble several times, including a late goalline clearance and Morocco struck the post with a spectacular bicycle effort.
France swept forward and converted their first chance through Hernandez to put their opponents on the back foot.
NO FAIRYTALEWhile there was to be no fairytale continuation of their unprecedented run to the last four, Morocco exited with their heads held high.