The answer to 'how to get rid of rat' is to use a combination of prevention, trapping, and professional pest control services. Rats can enter homes through small openings and are attracted to food sources, nesting materials, and warm shelter. Signs of a rat problem include droppings, gnaw marks, and noises in walls or attics.
For DIY control, seal any entry points, remove food sources, and use humane traps to catch and remove rats. However, if the infestation is severe or you're unable to locate the nesting site, it's best to call a professional pest control technician. They have the expertise and equipment to fully eliminate the rat problem and prevent future infestations.