The morphology-controlled synthesis of ZnO nanoforests is achieved via a facile hydrothermal route based on the respective and synergistic influence of polyethylenimine (PEI) and ammonia. More importantly, the unique architectural characteristics endow the willow-like ZnO nanoforest with prominent photoelectrochemical water splitting performance, which leads to the realm of homogeneous ZnO nanostructures.