As the title indicates, how does Lemmy work?

I recently inquired in a couple other communities about necessities (whether it be hardware or software, ect) and guidance to create a server/instance and decided I may be better off understanding how this realm works and operates as my starting point, then move into the hardware side, then continue to the Sofware and setup.