The councillor, whose mother fled to Britain from Somaliland when he and his siblings were children, becomes the first Somali origin politician to be elected to the European Parliament.
The Greens won 13 per cent of the vote with 166,980 votes, but the majority went to the Brexit Party with 470,351, or 36 per cent.
Magid, who won a seat for the Green Party in Yorkshire and Humber and is also known as Magic Magid, tweeted: “We did it. Today is about a Green Wave cascading through Europe & landing on the shores of Yorkshire for the first time. We’re just getting started.