From June to September the final ferry from Naples to Capri departs at 9:00pm. The remaining months of the year, the last ferry departs at 7:00pm. If you are arriving in late evening, you will have to book a private transfer by speedboat, or spend the night on the mainland.