Gianyar is a government district (Kabupaten) of Bali, Indonesia. It has an area of ​​368 and 416 728 inhabitants (2003), making it the second most densely populated county (after Badung) in Bali. Seat is the city of Gianyar. The town of Ubud, a center of art and tourism, is located in Gianyar.