It seems that in Spain there are two separate police forces under the authority of Madrid: the [Guardia Civil](https://en.wikipedia.org/wiki/Civil_Guard_(Spain)) and the [Policía Nacional](https://en.wikipedia.org/wiki/National_Police_Corps). Why is that? And what is the difference between the two?