Piles, also known as hemorrhoids, are a common medical condition affecting the anus and rectum. They happen when the veins in these places get swollen and inflamed, which can cause pain, itching, and even bleeding in the rectal area. There are two types of piles: internal and external, and they can range from mild to severe.