PurposeThis study aims to apply Process Mining (PM) techniques to identify the critical elements that primarily affect the trials’ duration and suggest the best practices to enable their more efficient execution, reduce their duration and, consequently, create public value, through a case study conducted in an Italian Civil Court.Design/methodology/approachThrough PM analyses and in-depth discussions with the court staff, we analysed the trials with the longest duration and those belonging to a specific subject matter to identify peculiar features and inefficiencies that prolong the trials’ duration.FindingsOur results highlight how innovative tools like PM can revolutionise the judicial system by providing judges with objective trials data that can support and facilitate the entire trials’ definition. However, many issues, especially related to the little spread data culture and process-oriented approach in courts, are highly present, leading to data inconsistencies and subsequent difficulties in trials’ analysis and interpretation.Originality/valueLittle research has devoted attention to the PM potential to enhance the judiciary. Our study contributes to this strand, yet adopting a different approach: it investigates the trials’ excessive length by focusing on bottlenecks and inefficient activities that slow down trials and identifies activities’ thresholds to monitor the trials’ execution and limit delays.