After the events of Secret Invasion, Nick Fury discovers that S.H.I.E.L.D. was under the control of Hydra, and apparently had been from the beginning.
Hydra (alongside A.I.M.) later appears in an alliance with H.A.M.M.E.R. [REF].