D-flat major
The sonata ends in the tonic major, in the enharmonic spelling of D-flat major.