Learned borrowing from Javanese negara (“country”), from Old Javanese nagara (“country, palace”), from Sanskrit नगर (nagara, “city”).
negarè