If your Alliance owns at least one region which is not already part of another country,
you can spend your alliance treasury resources to build a capital in that region.

Once your alliance created a capital, you can use it to create a country by selecting an alliance-owned region that's adjacent to the capital. Adding the region to the capital costs again alliance treasury resources.

In general: Your alliance needs 2 adjacent regions to create a country.