A penis can become erect if a male is sexually aroused (or sometimes during sleep, even though there is no sexual stimulation). In an erection, the penis fills with blood. The blood makes the penis become longer, thicker and harder. Veins taking blood away from the penis get smaller, so less blood is taken through. Arteries bringing blood to the penis get wider, bringing more blood to the penis.