After graduating from the Gelehrtenschule des Johanneums in Hamburg-Winterhude in 1998, Mohamed Ali studied law at the universities of Heidelberg and Hamburg, where she began and completed her studies.