As they stood victorious, Sir Edward turned to Sofia and revealed that he had discovered her true identity. Overjoyed, he took her hand and confessed his love, and Sofia, her heart overflowing, accepted.