Articles having functional surfaces, for example antimicrobial functional surfaces, are prepared by methods comprising anodization. Organophosphorous compounds are deposited on a surface by methods comprising anodization, followed by attaching functional compounds, functional oligomers or functional polymers. Alternatively, functional organophosphorous compounds, functional oligomers or functional polymers are deposited on a surface by methods comprising anodization.