An algorithm is developed which models structures such as microstrip, inverted microstrip, slotlines, and coplanar waveguides on anisotropic substrates. A technique is developed which may encompass all useful structures with or without cover or with a rectangular shield. The algorithm includes the possibility of multiple anisotropic layers, each of which is characterized by a diagonalized tensor permittivity. The method consists of developing the LSE- and LSM-mode field solution to derive the Green's function for the structure under consideration. Subsequently, the Galerkin method is used to obtain the longitudinal and transverse current density or aperture electric-field components. In this manner, the dispersive behavior of several structures is obtained to show the versatility of the method. The error introduced when anisotropy is neglected is also discussed.