A tetragonal pyramid-shaped porous ZnO (TPSP-ZnO) nanostructure is used for the immobilization, direct electrochemistry and biosensing of proteins. The prepared ZnO has a large surface area and good biocompatibility. Using glucose oxidase (GOD) as a model, this shaped ZnO is tested for immobilization of proteins and the construction of electrochemical biosensors with good electrochemical performances. The interaction between GOD and TPSP-ZnO is examined by using AFM, N(2) adsorption isotherms and electrochemical methods. The immobilized GOD at a TPSP-ZnO-modified glassy carbon electrode shows a good direct electrochemical behavior, which depends on the properties of the TPSP-ZnO. Based on a decrease of the electrocatalytic response of the reduced form of GOD to dissolved oxygen, the proposed biosensor exhibits a linear response to glucose concentrations ranging from 0.05 to 8.2mM with a detection limit of 0.01mM at an applied potential of -0.50V which has better biosensing properties than those from other morphological ZnO nanoparticles. The biosensor shows good stability, reproducibility, low interferences and can diagnose diabetes very fast and sensitively. Such the TPSP-ZnO nanostructure provides a good matrix for protein immobilization and biosensor preparation.