This paper gives a formalization of general topology in second order arithmetic using countably based MF spaces. This formalization is used to study the reverse mathematics of general topology.For each poset P we let MF(P ) denote the set of maximal filters on P endowed with the topology generated by {N p | p ∈ P }, whereDefine a countably based MF space to be a space of the form MF(P ) for some countable poset P . The class of countably based MF spaces includes all complete separable metric spaces as well as many nonmetrizable spaces.The following reverse mathematics results are obtained. The proposition that every nonempty G δ subset of a countably based MF space is homeomorphic to a countably based MF space is equivalent to Π 1 1 -CA 0 over ACA 0 . The proposition that every uncountable closed subset of a countably based MF space contains a perfect set is equivalent over Π