In the 15th century, the town was a possession of the Serbian despots Stefan Lazarević and Đurađ Branković.