According to the Ramayana, Lanka was originally built by Vishwakarma for Kubera, the god of wealth and Ravana's step-brother. Ravana later seized Lanka from Kubera. Before Kubera, it was ruled by Ravana's father, Vishrava. Indra and Vishnu had no connection to ruling Lanka.