To socialize a pet rat, you can start by spending time near their cage and talking to them softly to get them used to your presence and voice. You can also offer them treats by hand to establish a positive association with you. Gradually, you can start handling them gently and frequently to help them become more comfortable with human interaction. It's important to be patient and consistent in your efforts to socialize your pet rat.