During the Morean War, Bujović took command of the forces of Perast, offering their services, in his own name and that of the people of the city, to the Republic of Venice, with whom he was deeply connected. The Venetians rewarded him well, enabling him to keep living in luxury; he built a palace and maintained a personal guard. In 1695 he assisted in an attack on Trebinje, and fought as well against north African pirates. Between 1694 and 1708 he was repeatedly elected a leader of the town. His palace was finished in 1694; on March 28, 1704, he was made a duke.
