The best flooring under a piano is a hard, stable surface like hardwood or engineered wood to ensure stability and optimal sound quality.