Hard coatings have been widely used in many extreme working environments. In the past few decades, transition metal nitrides, such as TiAlN have already been used for many applications, such as metal cutting tools. Recently, attention has been captured by transition metal borides for their high hardness, good wear resistance and excellent chemical stability. Among all the borides, WB2 has been becoming a competitive candidate as a protective coating, especially AlB2-type WB2. The nanocomposite-film approach can be used to further enhance the mechanical and tribological properties of the AlB2-type WB2 film. In this work, W-Al-B nanocomposite coatings with different Al content (0 to 44.04 at.%) were deposited by a dual-target direct-current magnetron sputtering system. The influence of Al content on the microstructure, mechanical and tribological properties of the nanocomposite coatings was evaluated in detail. The result shows that the W-Al-B coatings are polycrystalline structure consisting of nanocrystal WB2 and amorphous Al2O3/Al. The hardness of the coatings increases initially and then decreases with the increasing of Al content. Coating with Al content of 2.22 at.% presents the maximum hardness of 34.42 GPa. Whereas the indentation toughness of the coatings deposited on (100) Si wafers deteriorates with the doping of Al element. Coating with Al content of 2.22 at.% also exhibits the best wear resistance with the wear rate of 2.20×10−7 mm3/Nm owing to its high hardness. The W-Al-B coatings perform better wear resistance than pure WB2 due to the lubrication effect of the amorphous Al2O3 phase.