How did religion influence history and culture?