Where can I find out about how a user is created. I am not

Where can I find out about how a user is created. I am not so familiar with wp user creation vs. an optin on a form. Is this "user" one that has registered and can now leave comments? If so how and where does that registration take place?