Median raphe cysts are congenital lesions that typically have a superficial appearance. We present a very unusual case of a deep perineal mass in a six-year-old boy. The lesion extends into the corpus cavernosum, suggesting that the anomaly was an early embryological event. Histopathological features are consistent with an epidermoid type of median raphe cyst.