P-type transparent conducting SnO thin films with enhanced electronic properties were directly prepared using rf magnetron sputtering without post-deposition annealing. The preparation conditions were systemically investigated. The electronic properties, optical properties, structure and surface morphologies of the films were characterized. It was observed that the structure of the films has a great effect on the films׳ conductivity. A transparent p-n junction diode was obtained by growing an n-type SnO2:Sb film on a p-type SnO film deposited on a SiO2(100) substrate. The diode exhibits a distinct I–V rectifying characteristic, indicating that the SnO thin film and the corresponding fabrication method hold promise for use in industrial applications.