Why were cathedrals built and what purpose did they serve in the development of religion?

Gothic cathedrals were built in the middle ages- but for what reason? in the development of the gothic cathedrals in general.
3 answers 3