[3] Ayala graduated in law at the University of Palermo and worked as a substitute public prosecutor for the Republic, assisting the "anti-mafia pool" for several years.
He was elected to the Chamber of Deputies in 1992, shortly before the murder of Giovanni Falcone and Paolo Borsellino (magistrates of the anti-mafia pool with which Ayala had been interlocutor at the Public Prosecutor's Office), becoming a deputy in the ranks of the Italian Republican Party (PRI).
Following Tangentopoli, and the PRI crisis, Ayala joined the Democratic Alliance (AD), confirming the seat in the Chamber of Deputies in 1994.
After the dissolution of AD he joined the Democratic Union (UD) of Antonio Maccanico, with which he was elected to the Senate in 1996.
After 2006, he returned to the judiciary as a councilor of a civil section at the Court of Appeal of L'Aquila (2006 – 2011).