T-S fuzzy theory has been widely used in nonlinear systems in recent years. In this thesis, we use T-S fuzzy theory to model and control the photovoltaic (PV) microgrid which includes a PV array, a maximum power point tracker (MPPT) and a bidirectional converter. Computer simulation results are verified by experimental results. Changing the control method or circuit configuration of the dc microgrid will affect the overall system and become hard to analyze. After system modeling, computer simulation can show the effects on dc microgrid and reduce the waste of resource. In this thesis, we first analyze circuit configuration, switches operation and duty ratio control law in each modules. Then the models are established for computer simulation, and we compare the advantages and disadvantages between T-S fuzzy control and the traditional control.