While she reigned as the queen of the Mid Rim world of Naboo, Padmé Amidala resided in an apartment located inside the Theed Royal Palace. Because the queen did not want guards inside her living space, her captain, Quarsh Panaka, put in place significant security precautions in the apartment.