The expression of alkaline phosphatase in response to phosphate starvation was shown to be spatially and temporally heterogeneous in bacterial biofilms and colonies. A commercial alkaline phosphatase substrate that generates a fluorescent, insoluble product was used in conjunction with frozen sectioning techniques to visualize spatial patterns of enzyme expression in both Klebsiella pneumoniae and Pseudomonas aeruginosa biofilms. Some of the expression patterns observed revealed alkaline phosphatase activity at the boundary of the biofilm opposite the place where the staining substrate was delivered, indicating that the enzyme substrate penetrated the biofilm fully. Alkaline phosphatase accumulated linearly with time in K. pneumoniae colonies transferred from high-phosphate medium to low-phosphate medium up to specific activities of 50 μmol per min per mg of protein after 24 h. In K. pneumoniae biofilms and colonies, alkaline phosphatase was initially expressed in the region of the biofilm immediately adjacent to the carbon and energy source (glucose). In time, the region of alkaline phosphatase expression expanded inward until it spanned most, but not all, of the biofilm or colony depth. In contrast, expression of alkaline phosphatase in P. aeruginosa biofilms occurred in a thin, sharply delineated band at the biofilm-bulk fluid interface. In this case, the band of activity never occupied more than approximately one-sixth of the biofilm. These results are consistent with the working hypothesis that alkaline phosphatase expression patterns are primarily controlled by the local availability of either the carbon and energy source or the electron acceptor.