Mesoporous silica and niobia thin films are fabricated by using precursor solutions including PS-b-PEO diblock copolymers. The mesopore arrangements are strongly affected by dip-coating speeds during the film formation. With the decrease of the coating speeds, the mesopores were more closely packed each other.