For the subject see Ovid, 'Metamorphoses' (6). Apollo defeated the satyr Marsyas in a musical competition; as a punishment for failure, Apollo flayed him.The picture was originally above the door of the Stanza di Apollo in Villa Aldobrandini, hence its fo