Chicago has elected its first gay and first black female mayor, becoming the largest US city to elect a black woman in the position.

Lori Lightfoot, who has never before held office, won the election on Tuesday and said that the people of Chicago have “created a movement for change”.

The 56-year-old former federal prosecutor and practising lawyer won by a margin of 74 to 26 per cent.

Since 1837, Chicago has voted in only one black mayor and one female mayor.