German planes will operate from a base in the UK under a defence pact with Berlin being signed on Wednesday.
The submarine-hunting planes will fly from Scotland, patrolling the North Atlantic as the allies respond to the growing threat from Russia.
And German arms giant Rheinmetall is set to open a factory producing artillery gun barrels using British steel.
Prime Minister Sir Keir Starmer wants to “reset” relations with the European Union’s key players and the defence deal is the first pillar in a planned wider UK-Germany treaty.
The agreement will see the Nato allies working together on developing long-range strike weapons that can travel further than the UK’s existing Storm Shadow missiles.
And the UK and Germany will also collaborate on developing new land-based and aerial drones.
“It secures unprecedented levels of new co-operation with the German armed forces and industry, bringing benefits to our shared security and prosperity, protecting our shared values and boosting our defence industrial bases.
“This landmark agreement delivers on the Government’s manifesto commitment to strike a new defence relationship with Germany – less than four months since winning the election in July – and we will build on this new co-operation in the months and years ahead.
“I pay tribute to our negotiating teams who have worked hard at pace to deliver this.”
In response to the potential threat from Russian activity at sea, the allies will also work together to protect underwater cables.
In addition, the agreement will pave the way for the new Rheinmetall plant, which will see the UK make artillery gun barrels for the first time in a decade using steel made by Sheffield Forgemasters and supporting 400 jobs.
The first artillery gun barrels are expected to be produced in 2027.
Other measures will see co-operation to strengthen Nato’s eastern flank and extra support for Ukraine, including work on equipping German Sea King helicopters with modern missile systems for use by Kyiv’s forces.
“With the Trinity House Agreement, we are showing that the Nato allies have recognised what these times require and are determined to improve their deterrence and defence capabilities.
“As it lays the foundation for future projects, the Trinity House Agreement is an important contribution to this.
“It is particularly important to me that we co-operate even more closely to strengthen Nato’s eastern flank and to close critical capability gaps, for instance in the field of long-range strike weapons.”