Hang Nadim (Jawi: هڠ نديم) was a warrior of the Johor-Riau during the Portuguese occupation of Melaka (modern day Malacca).
Nadim was appointed laksamana (admiral) of Sultan Mahmud Shah's forces that harassed the Portuguese trade colonies from 1511 to 1526.
After the 1511 fall of Malacca to the Portuguese, exiled Sultan Mahmud Shah of the royal house of Melaka, withdrew from Teloh Naming to Ulu Muar.
It is mentioned in the traditional accounts that the swordfish attacks were the result of a curse because the reigning Maharajah had ordered the death of a pious man, Tun Jana Khateb, from Pasei.
In the Annals, the Raja plans to counter the attacks by having his countrymen stand in the sea to form a human barrier of legs along the shores of Temasek to protect the area.