We extend the classical stability theorem of Erdos and Simonovits for forbidden graphs of logarithmic order.