Clash of Clans is a game for people who like to plan and focus on the small details that make up something huge, and by designing villages these people will have a lot of room to put their ideas into practice, since they not only have to build a main village, but there is also a builder's high school and war base village.
The war base in Clash of Clans It is a kind of arena, or secondary village, that is only enabled during clan wars, where players belonging to a clan face a rival clan to win loot. In those wars you will have to face two enemy villages and try to win as many stars as possible.
The war village has the same elements as the main village but the distribution is usually different, since it is sought to make it impregnable, so that your rival does not take the three stars from you. Protecting the town hall is the priority in this case.
If you leave the clan in the middle of the war, your war village will still be visible and under attack. You can return to the clan and end the war if you wish or are allowed.
The base must be prepared in the 23 hours before the war because once it starts you can no longer edit it.