With plenty of time on his hands, Bill Clinton is teaming up with best-selling author James Patterson to write a political thriller called “The President is Missing,” the publishers announced Monday.

The novel will be “a unique amalgam of intrigue, suspense and behind-the-scenes global drama from the highest corridors of power. It will be informed by details that only a president can know,” Alfred A. Knopf and Little, Brown and Co. said in a statement.

It is due out in June 2018 as a joint-release from the two rival publishers.

The publishers didn’t say how much the former president would be paid for the work.

Clinton’s 2004 autobiography, “My Life,” sold more than 2 million copies.

Patterson’s books have sold more than 350 million copies worldwide.

Clinton and Patterson, both 70, share a literary representative, Washington attorney Robert Barnett, who negotiated the deal.

Knopf is Clinton’s publisher, and Little Brown has been putting out Patterson’s books for decades.

A political book from 1994 had a similar dual-publisher arrangement. Random House and Simon & Schuster jointly published “All’s Fair: Love, War and Running for President,” a memoir by husband-and-wife campaign consultants James Carville and Mary Matalin.

Presidents and ex-presidents have been churning out memoirs for decades, but works of fiction are rare.

The first published work of fiction by a US president was “The Hornet’s Nest,” Jimmy Carter’s 2003 historical novel set in the Deep South during the Revolutionary War.

Christopher Malagisi, editor in chief of the Conservative Book Club, told The Post that he’s “thrilled” that Clinton is “spending his time constructively writing stories of intrigue, as opposed to being the center of that intrigue.”