Borides are promising wear-resistant materials. The mechanical and tribological properties of ZrB2, (Ta, Zr)B2, (Ta, Zr, Ti)B2, (Ta, Zr, Ti, V)B2 and (Ta, Zr, Ti, V, Hf)B2 synthesized by spark plasma sintering were compared to examine the elemental dependence. The results indicated that the hardness and fracture toughness of borides increased with the increase of entropy. (Ta, Zr, Ti, V, Hf)B2 obtained the highest hardness and fracture toughness of 23.14 GPa and 5.13 Mpa·m1/2 due to the pores and second phases that change the path of crack propagation. In terms of wear, all the Ta-contained borides have a lower wear rate than that of ZrB2. It is almost one order of magnitude lower for (Ta, Zr, Ti, V, Hf)B2 than that of ZrB2. This is mainly due to the formation and action of tribofilm rich of amorphous Ta2O5. Thermodynamic calculation indicates that the Ta atoms in borides are more prone to being oxidized resulting in the formation of a layer of Ta2O5 on the surface, which is beneficial to wear resistance improvement. This work provides guidelines for the composition-design of high-entropy borides for wear-resistant material applications.