“Hunger Games” and “Captain Phillips” scribe Billy Ray has come on to develop and pen the script for an adaptation of “Don Quixote” sources confirmed to Variety.

Ray will produce with Gordon Gray.

Written by Miguel de Cervantes in 1605, the story is about a lower class aristocrat named Alonso Quixano who goes insane and comes to believe that knights, maidens and dragons exist in real life.

Sources tell Variety the plan is to give the film a “Pirates of the Caribbean” vibe with the possibly of creating a franchise. Disney is about to release its fifth “Pirates of the Caribbean” film next year after the previous four installments have grossed more than $3 billion dollars combined worldwide.

Gray’s previous credits include “McFarlane USA” and “Million Dollar Arm,” both of which were produced by Disney. Ray most recently wrote and directed STX’s “The Secret in Their Eyes.”

Ray is repped by CAA and Management 360.