Paul was arrested twice. The first time is found in Acts 16, where he cast out demons from a young girl. The girl, apparently was a slave and brought great riches to her master using divination (similar to fortune telling). Her master became enraged because once the demons were gone, she could no longer, practice her trade. The master, then, stirred up the ire of the people and reported him to the Jewish magistrates (Temple leaders). They ordered Paul and his co-laborers scourged and jailed.
He was, later, released by the angels of God who caused an earthquake which opened the jail gates and freed all the prisoners. When the jailer, being responsible for the prisoners, awoke from his sleep and saw the prisoners fleeing, he took his sword and prepared to commit suicide. But, Paul cried out to him to stop. He, then, fell to his knees before Paul and asked, what must I do to be saved. Paul took time to teach him the Gospel of Christ. The jailer, then, washed their wounds and was baptized. He later took them to his home and fed them. Afterwards, word came from the magistrates to release Paul and his co-laborers from prison. A miraculous story, indeed.
The second time Paul was jailed, in Acts 16, was, basically, for preaching the Gospel of Christ. Nevertheless, he was charged with teaching against the people, the law, the temple and for bringing a heathen into the temple (which he did not do).
That prison term lasted almost three years.
Pastor Justice Adoh
U.S.A.