Likewise, a married couple have to soften the rough edges of their relationship. This involves time and hard work. You try it and if the rough edges still do not fit, you keep on until they do. A bad match need not remain bad forever. Of course, the ideal place to begin a good marriage is long before the wedding ceremony.
Background is very important.
However, perhaps you have not been fortunate enough to see a good example with your own parents. If so, you have to strive to be of good character, honest, loyal, trustworthy and a good communicator long before you get married and then continuing into marriage. It is too much to expect all these qualities to appear overnight. Also, carefully consider, with advice from those close to you and whose own marriages you respect, whether this person is really suited for you and you for him or her. There is no replacement for time spent together in different circumstances.