We develop the theory of generically stable types, independence relation based on nonforking and stable weight in the context of dependent (NIP) theories.