In this study, it has been presented an algorithm for second-order elastoplastic dynamic time-history analysis of three dimensional frames that have steel members with semirigid joints. The proposed analysis accounts for material, geometric and connection nonlinearities. Material nonlinearity have been modeled by the Ramberg-Osgood relation. While the geometric nonlinearity caused by axial force has been described by the use of the geometric stiffness matrix, the nonlinearity caused by the interaction between the axial force and bending moment has been also described by the use of the stability functions. The independent hardening model has been used to describe the nonlinear behaviour of semi-rigid connections. Dynamic equation of motion has been solved by Newmark's constant acceleration method in time history domain.