Prokaryotic cells perform various essential functions in ecosystems. They play a critical role in nutrient cycling, such as the nitrogen cycle and the carbon cycle. Some prokaryotes can fix nitrogen, converting atmospheric nitrogen into a form usable by plants. Others are involved in decomposing organic matter, thus recycling nutrients back into the environment.