Community ecology examines the interactions between populations of different species living in the same area. Species compete for limited resources but can coexist through mechanisms like resource partitioning, where species differentiate their use of resources to reduce competition. Disturbances can alter communities, initiating primary or secondary succession as the community reestablishes itself over time. Keystone species play an outsized role in community structure and ecosystem function.