The first written mention of the city was in an Ottoman cadastral survey ("defter") in 1476 after the city's incorporation into the Sanjak of Smederevo. Referred to as 'Kraguyfoça', the settlement, after Ottoman conquest, consisted of a square formerly used as a market with 32 houses. The surrounding region was largely empty; even the forests that once dominated the region had been burned. By the end of the same century, however, the Ottoman administration began to slowly resettle the city's area; by the 1536 cadastral survey, the town had 7 Muslim neighborhoods ("mahalas") with 56 houses in total, along with a Christian community of 29 houses. On the left bank of the Lepenica, a mosque was erected.