The definition of companionship refers to company, friendship or the state of being with someone in a friendly way.(noun)
When you get married because you enjoy having a friend and having someone there to keep you company and be with someone, this is an example of a time when you marry for companionship.
See companionship in Webster's New World College Dictionary
See companionship in American Heritage Dictionary 4
Learn more about companionship