How important is compatibility in relationships or marriages?

Besides falling in love, how important is compatibility in a relationship or marriage?

For instance I imagine it would be hard for an atheist to be with someone religious, someone wanting kids with someone that doesn't or realizing the person believes in spanking kids while you're against it.

How important is compatibility in relationships or marriages?
Post Opinion