Chalazion occurs when oil in the gland becomes too thick to flow out of the gland. The excess oil produced builds up inside the gland and forms lump in the eye lid. Later the gland ruptures and releases the oil in to the tissue of the eye lid causing inflammation.