The shooting happened in the early hours of Saturday morning in the New Lodge area.
Police say officers received a report that the victim had been assaulted by a number of men.
It is believed the attack took place near Hillman Street.
The man was taken to hospital for treatment to his injuries.
Detectives in north Belfast are appealing for anyone with information to contact them on the 101.