A bio-inert surface chemistry was developed that can confine biofilm formation in designed patterns for at least 26 days.