In a statement on Twitter, the ministry said the blast occurred in a crowded area in Afrin's centre. A video shared by the ministry showed black smoke billowing in the air while ambulance and police sirens wailed in the background.
The United States condemned the attack late on Tuesday, which State Department spokesperson Morgan Ortagus said claimed "the lives of dozens of people shopping in the central market as they prepared to break the Ramadan fast."
"Initial reports indicate many victims were civilians, including children," she said in the statement, reiterating a US call for a nationwide ceasefire in Syria. "Such cowardly acts of evil are unacceptable from any side in this conflict."
Ankara views the YPG as a terrorist group linked to Kurdish militants on its own soil and has mounted military operations in northern Syria to push it back from the border.
Turkey's military and its Syrian rebel allies seized Afrin, a mainly Kurdish district, from the YPG in March 2018 in a major offensive.
Tuesday's blast was one of the deadliest to hit a region under the control of Turkish-backed forces. Ankara frequently blames the YPG for the attacks, while the militia says it does not target civilians.
COMMENTS
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ