Paris Saint-Germain star Achraf Hakimi had the best chance for Morocco with a thumping second-half shot punched away with both fists by goalkeeper Dominik Livakovic.
The 37-year-old Modric is playing in his fourth and final World Cup, where he’s looking to add a Croatia title to his trophy-laden career with Real Madrid.
Modric had one of the best chances of the game when he blasted a shot just over the crossbar in first-half stoppage time. Croatia also went close when Dejan Lovran got a shot off at a corner and Sofyan Amrabat cleared off the line for Morocco.
In a tough Group F, Morocco faces No. 2-ranked Belgium next. Croatia plays Canada.