How did Belgium become a country?

by LECArgentina

Considering that during and after its war against Spain, actual Belgium used to be part of the Netherlands. How did that region became two different countries and why?

Searocksandtrees