The performance of wurtzite AlScN is hindered by defects such as inversion domain boundaries (IDBs) and interfacial contaminations. Both piezoelectricity and structural stability can be enhanced by applying tensile strain and reducing oxygen concentration.