Mechanical solidarity is a type of social cohesion that arises when individuals in a society share similar values, beliefs, and types of work, leading to a sense of collective consciousness. It is prevalent in traditional, agrarian societies where people perform similar tasks and the individual's identity is heavily connected with the group identity.