camaraderie

(n) a spirit of friendly good-fellowship
Although we started the hike as strangers, the adversity  of the climb caused us to create a sense of camaraderie.