To keep cornbread from falling apart, try adding a bit more liquid to the batter to ensure it's adequately moistened. Additionally, avoid overmixing the batter, as this can lead to a denser texture. Finally, allow the cornbread to cool slightly before slicing to help it set.