Castle towns were originally constructed for defense but became grand examples of blending beauty and practicality in Japanese arts. The first samurai castles were simple wooden forts but later castle towns transformed into complex city centers surrounded by defenses. Inside, rooms of varying sizes were divided by paper screens and connected by wooden corridors, with minimal furniture but subtle decorations. Surrounding the lord's castle were homes of his most important warriors and merchants, with lower-ranking samurai and peasant farmers living farther outside the walls in neighborhoods divided by social status.